<template lang="html">
  <div class="strategyhot-header">
    <div class="strategyhot-box-header">
      <p class="p3">热门攻略</p>
      <p class="p2">更多>>></p>
    </div>
      <div class="strategyhot-box" v-for="(item,index) in data" :key ="index">
            <div class="strategyhot-title">
                <div class="strategyhot-title-img">
                    <img src="../../assets/img/picture_GL02.png" alt="">
                </div>
                <div class="strategyhot-title-infor">
                    <p>{{item.name}}</p>
                    <p>时间</p>
                    <p class="p1">关注</p>
                </div>
            </div>
            <div class="strategyhot-container">
              {{item.text}}
            </div>
      </div>

  </div>
</template>

<script>
export default {
  name:"HotStrategy",
  props:{
    data:{
      type:Array,
      default:function(){
        return []
      }
    }
  }
}
</script>

<style lang="css">

.strategyhot{
  width: 100%;
}
.strategyhot-header{
  overflow: hidden;
    position: relative;
}
.title{
  float: left;
}
.strategyhot-box-header {
  width: 100%;
  height: 25px;
}
.strategyhot-box-header .p3{
  display: inline-block;
  float: left;
  border-left: 2px solid red;
  padding-left: 5px;
  margin-left: 8px;
}
.p2{
  float: right;
  margin-right: 8px;
}
.strategyhot-box{
  background: #fff;
  padding: 2px;
  border-bottom: 1px solid #f1f1f1;
}
.strategyhot-header p{
  font-size: 14px;
  display:block;
}
.strategyhot-header img{
  width:0.8rem;
  float: left;
  margin: 10px;
  border-radius: 50%;
}
.p1{
  position: absolute;
  right: 20px;
  top: 8px;
  display: inline-block;
  padding: 2px 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.strategyhot-container{
  line-height: 25px;
  padding: 10px;
  padding-top: 0px;
  font-size: 14px;
}
.strategyhot-title-infor {
  position: relative;
  height: 60px;
  width: 100%;
}
</style>
